#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <assert.h>

char* my_strcpy(char* dest,const char* str)
{
	assert(dest && str);
	char* ret = dest;
	while (*dest++ = *str++)
	{
		;
	}
	return ret;
}
int main()
{
	char arr[20] = {0};
	char str[]="nifdjif";
	printf("%s",my_strcpy(arr, str));
	return 0;
}